import Layout from '@/layout'

const monitorRouter = {
  path: '/monitor',
  component: Layout,
  name: 'monitor_mgr',
  redirect: '/monitor',
  meta: { title: '系统监控', icon: 'ljm-monitor', permissions: ['sys:monitor:job', 'sys:monitor:db'] },
  children: [
    {
      path: 'http://47.107.129.179/job-admin',
      name: 'job_mgr',
      meta: { title: '任务调度', icon: 'ljm-job', permissions: ['sys:monitor:job'] }
    },
    {
      path: 'http://47.107.129.179/ljm-api/druid',
      name: 'database_mgr',
      meta: { title: '数据库监控', icon: 'ljm-database', permissions: ['sys:monitor:db'] }
    }
  ]
}

export default monitorRouter
